package com.osdp.uc.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.osdp.uc.entity.UcUser;
import com.osdp.uc.entity.UcUserPosition;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

/**
 * 用户角色表 Mapper 接口
 * @Author
 * @since
 */
@Repository
public interface UcUserPositionMapper extends BaseMapper<UcUserPosition> {
    /**
     * 根据用户ID,查询关联表数据
     * @param userId
     * @return
     */
    @Select("select * from uc_user_position where user_id= #{userId}")
    List<UcUserPosition> queryUserPositionByUserId(@Param("userId") String userId);
}
